package cn.wsw.hrm.client;

import cn.wsw.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientsConfiguration;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(value = "HRM-REDIS",configuration = FeignClientsConfiguration.class,
        fallbackFactory = SmsClientFallbackFactory.class )//服务提供者的名称questMapping("/sms")
@RestController("/sms")
public interface SmsClient {

    @PostMapping
    AjaxResult send(@RequestBody Map<String,String> params);
}
